package club.ruanx.auth.vcode;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 阮胜
 * @date 2018/9/30 17:22
 */
@Data
@Component
@ConfigurationProperties(prefix = "ruanx.security.vcode")
public class ImageCodeProperties {
    /**
     * 验证码图片宽度
     */
    private int width = 200;

    /**
     * 验证码图片长度
     */
    private int height = 80;

    /**
     * 验证码字符长度
     */
    private int vcodeLength = 4;

    /**
     * 验证码干扰线数
     */
    private int lineCount = 100;

    /**
     * 过期时间 (单位:秒)
     */
    private int expiredInSeconds = 300;

}
